/* ************************************************************************

   Copyright:

   License:

   Authors:

************************************************************************ */

qx.Theme.define("bip.theme.Decoration",
{
  extend : qx.theme.modern.Decoration,

  decorations :
  {
  	
  	/*
    ---------------------------------------------------------------------------
      APPLICATION
    ---------------------------------------------------------------------------
    */
  	"application-header-css" : {
      decorator : [
        qx.ui.decoration.MSingleBorder,
        qx.ui.decoration.MBorderRadius,
        qx.ui.decoration.MLinearBackgroundGradient
      ],
      style : {
        width : 0,
        color : "window-border",
        colorBottom : "window-border",
        radius : [5, 5, 0, 0],
        gradientStart : ["application-start", 30],
        gradientEnd : ["application-end", 70]
      }
    },
    
    "application-header":
    {
      decorator : qx.ui.decoration.Background,

      style :
      {
        backgroundImage : "decoration/app-header.png",
        backgroundRepeat : "scale"
      }

    },
    
    "application-pane" :
    {
      decorator : qx.ui.decoration.Grid,

      style :
      {
        baseImage : "decoration/tabview/tabview-pane.png",
        insets : [ 4, 6, 7, 4 ]
      }
    },

    "application-pane-css" :
    {
      decorator : [
        qx.ui.decoration.MBorderRadius,
        qx.ui.decoration.MLinearBackgroundGradient,
        qx.ui.decoration.MSingleBorder
      ],

      style : {
        width: 2,
        color: "application-pane-border",
        radius : 5,
        gradientStart : ["application-pane-start", 90],
        gradientEnd : ["application-pane-end", 100]
      }
    },
    
    "application-portlet-css" :
    {
      decorator : [
        qx.ui.decoration.MBorderRadius,
        qx.ui.decoration.MLinearBackgroundGradient,
        qx.ui.decoration.MSingleBorder
      ],

      style : {
        width: 2,
        color: "application-pane-border",
        radius : 5,
        gradientStart : ["application-pane-start", 90],
        gradientEnd : ["application-pane-end", 100]
      }
    },
    
    /*
    ---------------------------------------------------------------------------
      PAGES
    ---------------------------------------------------------------------------
    */
    "page-css" : {
      decorator : [
        qx.ui.decoration.MBorderRadius,
        qx.ui.decoration.MSingleBorder
      ],
      style : {
        radius : [5, 5, 0, 0]
      }
    },
    
    "page" :
    {
      decorator: qx.ui.decoration.Single,

      style :
      {
        backgroundColor : "background-pane",

        width : 1,
        color : "border-main",
        widthTop : 0
      }
    },
    
    "page-header-css" : {
      decorator : [
        qx.ui.decoration.MSingleBorder,
        qx.ui.decoration.MBorderRadius,
        qx.ui.decoration.MLinearBackgroundGradient
      ],
      style : {
        width : 1,
        color : "#0F0F0F",
        colorBottom : "#0F0F0F",
        radius : [5, 5, 0, 0],
        gradientStart : ["#ECF1FB", 10],
        gradientEnd : ["#FCFDFE", 70]
      }
    },
    
    "page-header":
    {
      decorator : qx.ui.decoration.Background,

      style :
      {
        backgroundImage : "decoration/app-header.png",
        backgroundRepeat : "scale"
      }

    },
    
    /*
    ---------------------------------------------------------------------------
      PORTLET
    ---------------------------------------------------------------------------
    */
    "portlet-css" : {
      decorator : [
        qx.ui.decoration.MBorderRadius,
        qx.ui.decoration.MSingleBorder
      ],
      style : {
        radius : [5, 5, 0, 0]
      }
    },
    
    "portlet-captionbar-css" : {
      decorator : [
        qx.ui.decoration.MSingleBorder,
        qx.ui.decoration.MBorderRadius,
        qx.ui.decoration.MLinearBackgroundGradient
      ],
      style : {
        width : 1,
        color : "#0F0F0F",
        colorBottom : "#0F0F0F",
        radius : [5, 5, 0, 0],
        gradientStart : ["#ECF1FB", 10],
        gradientEnd : ["#ECF1FB", 70]
      }
    },
    
    "portlet-pane" :
    {
      decorator : qx.ui.decoration.Grid,

      style : {
        baseImage : "decoration/window/statusbar.png"
      }
    },
    
    "portlet-pane-css" :
    {
      decorator : [
       qx.ui.decoration.MSingleBorder,
       qx.ui.decoration.MBorderRadius,
       qx.ui.decoration.MLinearBackgroundGradient
     ],
     style : {
       width : 1,
       color : "#0F0F0F",
       colorBottom : "#0F0F0F",
       radius : [5, 5, 5, 5],
       gradientStart : ["#ECF1FB", 10],
       gradientEnd : ["#FCFDFE", 70]
     }
    },
    
    
  	"window-head" :
    {
      decorator: qx.ui.decoration.Single,

      style :
      {
        backgroundColor : "white",

        width : 1,
        color : "border-main",
        widthTop : 0
      }
    },
    
    "question-description-css" :
    {
      decorator : [
        qx.ui.decoration.MBackgroundColor,
        qx.ui.decoration.MBorderRadius,
        qx.ui.decoration.MSingleBorder
      ],

      style : {
        backgroundColor : "#EBEBEB",
        radius : 2,
        color : "group-border",
        width: 1
      }
    }
  }
});